package com.lgx.mobile.dao;

import java.util.Date;
import java.util.List;

import com.lgx.common.exception.DataException;
import com.lgx.common.web.Pagination;
import com.lgx.mobile.entity.Group;
import com.lgx.mobile.vo.GroupVO;

/**
 * 
 * @author xuyichen
 *
 */
public interface IGroupDao  {
	public Group createGroup(Group group) throws DataException;
	public Group updateGroup(Group group) throws DataException;
	public void deleteGroup(Group group) throws DataException;
	public void deleteGroupById(long id) throws DataException;
	public Group findGroupById(long id);
	public Group checkGroupExists(long createUserId,Date createDate,long categoryId);
	public List<Group> findGroupList();
	public List<GroupVO> findHotGroupList(long num);
	public Pagination findGroupPagination(Object[] params, Class<?> clazz, int pageSize, int pageNum);
	public Pagination findMyGroupPagination(long userId,Object[] params,Class<?> clazz,int pageSize,int pageNum);
}